package com.medical.doctor.mapper;

import java.util.List;

import com.medical.doctor.domain.DiagnosticRecord;
import com.medical.doctor.domain.Drug;
import com.medical.doctor.domain.MedicalMedic;
import com.medical.doctor.dto.DrugAndPrescriptionDTO;
import com.medical.doctor.dto.DrugDTO;
import com.medical.doctor.vo.ReceiveVo;
import com.medical.doctor.domain.ReceivePatients;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 接诊Mapper接口
 * 
 * @author medical
 * @date 2024-07-21
 */
@Component
public interface ReceivePatientsMapper 
{
    /**
     * 查询接诊
     * 
     * @param id 接诊主键
     * @return 接诊
     */
    public ReceivePatients selectReceivePatientsById(Long id);

    /**
     * 查询接诊列表
     * 
     * @param receivePatients 接诊
     * @return 接诊集合
     */
    public List<ReceiveVo> selectReceivePatientsList(ReceivePatients receivePatients);

    /**
     * 新增接诊
     * 
     * @param receivePatients 接诊
     * @return 结果
     */
    public int insertReceivePatients(ReceivePatients receivePatients);

    /**
     * 修改接诊
     * 
     * @param receivePatients 接诊
     * @return 结果
     */
    public int updateReceivePatients(ReceivePatients receivePatients);

    /**
     * 删除接诊
     * 
     * @param id 接诊主键
     * @return 结果
     */
    public int deleteReceivePatientsById(Long id);

    /**
     * 批量删除接诊
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteReceivePatientsByIds(Long[] ids);

    int updateDoctorStatus(@Param("userId") Long userId, @Param("status") Integer status);

    List<Drug> selectDrugList(String drugName);

    void perscriptionAdd(DrugAndPrescriptionDTO drug);

    ReceivePatients findReceivePatientsById(Long id);

    void diagnosticRecordAdd(DiagnosticRecord diagnosticRecord);

    MedicalMedic findHospitalIdAndDepartmentId(Long doctorId);

    DrugAndPrescriptionDTO findDrugByDrugId(Long drugId);

    Long selectMedicalMedicById(Long id);
}
